import sys
import os

# 添加项目根目录到sys.path
#sys.path.append(os.path.abspath(os.path.dirname(__file__)))

from mypackage.A.A import Afun
# Afun()

# export PYTHONPATH=/root/MyCode/importrules:$PYTHONPATH
from mypackage.A.A import fromAgetB
importBfromA = fromAgetB()
result_1 = importBfromA()
print(result_1)

from mypackage.A.A import fromAgetD
importDfromA = fromAgetD()
result_2 = importDfromA()
print(result_2)